package td.control {
	import td.data.CreepData;
	public class LevelControl {
		public function LevelControl() {
			throw new Error("just a static class,plz don't new LevelControl()!")
		}
		
		public static function tollgate(value:int):Object {
			var creepdata:CreepData;
			var points:Array;
			var creepnum:int;
			switch(value) {
				case 1:
					creepdata = new CreepData(1, "高老头1", 2, 5000, 200, 0.05, 1, 5);
					points = [[2, -1], [2, 5], [6, 5], [6, 26], [28, 26], [28, 4], [12, 4], [12, 19], [22, 19], [22, 12], [45, 12]];
					creepnum = 10;
				break;
				case 2:
					creepdata = new CreepData(2, "高老头2", 2, 5000, 200, 0.05, 1, 5);
					points = [[2, -1], [2, 5], [6, 5], [6, 26], [28, 26], [28, 4], [12, 4], [12, 19], [22, 19], [22, 12], [45, 12]];
					creepnum = 60;
				break;
				case 3:
					creepdata = new CreepData(3, "高老头3", 2, 5000, 200, 0.05, 1, 5);
					points = [[2, -1], [2, 5], [6, 5], [6, 26], [28, 26], [28, 4], [12, 4], [12, 19], [22, 19], [22, 12], [45, 12]];
					creepnum = 70;
				break;
				default:
				break;
			}
			return { cd:creepdata, mapp:points, cn:creepnum };
		}
	}
}